# -*- codeing = utf-8 -*-
# @Time: 2022/1/9 21:46
# @Author: Foxhuty
# @File: main_exam_room.py
# @Software: PyCharm
# @Based on python 3.9

from data_source.exam_room_arrange import ExamRoom

if __name__ == '__main__':
    file_path = r'D:\work documents\高2021级\高一上期末考试\高2021级高一期末考试总表.xlsx'
    # file_path = r'D:\work documents\高2020级\高二上期半期考试.xlsx'
    # ExamRoom.numbers_in_room = 35
    exam_room = ExamRoom(file_path)


    @exam_room.make_directory
    @exam_room.title_lines
    @exam_room.use_time
    def main():
        print(exam_room)
        ExamRoom.numbers_in_room = eval(input('请输入每间考室的人数：'))
        exam_room.exam_room_choice()


    # 运行主程序：
    main()
